package com.zsz;

import com.zsz.ba04.Student;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class MyTest04 {
    @Test
    public void test01(){
        String config="applicationContext.xml";
        ApplicationContext ac=new ClassPathXmlApplicationContext(config);
        Student myStudeng= (Student) ac.getBean("myStudent");
        System.out.println("studeng对象："+myStudeng);
    }

}
